package com.ruoyi.system.service.impl;

import com.ruoyi.system.domain.entity.SmartReservation;
import com.ruoyi.system.domain.entity.SmartResultReservation;
import com.ruoyi.system.mapper.SmartReservationMapper;
import com.ruoyi.system.service.ISmartReservationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

/**
 * SmartReservationServiceImpl
 *车辆预约
 * @author life.
 * @date 2025/3/25
 */
@Service
public class SmartReservationServiceImpl implements ISmartReservationService {
    @Autowired
    private SmartReservationMapper smartReservationMapper;




    @Override
    public int updateReservation(SmartResultReservation reservation) {
        return smartReservationMapper.updateReservation(reservation);
    }

    @Override
    public List<SmartReservation> getReservationWithOrderByUserName( String scUserName,
                                                                     Date reservationDate,
                                                                     Integer reservationStatus) {
        return smartReservationMapper.selectReservationWithOrderByUserName(scUserName,reservationDate,reservationStatus);
    }
}